import request from '@/utils/request'

// 注册
export const regUser=data=>{
  return request({
    url:'/api/reg',
    method:'POST',
    data
  })
}
// 登录

export const login=data=>{
  return request({
    url:'/api/login',
    method:'POST',
    data
  })
}